// components/searchNav/searchNav.js
const App = getApp()

Component({
  /**
   * 组件的属性列表
   */
  properties: {
    title: {
      type: String,
      default: '到店自取',
    },
  },

  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {
    back() {
      wx.navigateBack({
        delta: 1,
      })
    },
  },
  lifetimes: {
    attached() {
      this.setData({
        navHeight: App.globalData.navHeight,
        statusHeight: App.globalData.statusBarHeight,
      })
    },
  },
})
